package com.songlin.houxin.admin.api.converter;


import com.songlin.houxin.admin.api.dto.ChannelSaveDTO;
import com.songlin.houxin.admin.api.entity.Channel;
import com.songlin.houxin.admin.api.vo.ChannelVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author jinYuLinLang
 * @version 1.0.0
 * @ClassName ChannelConverter.java
 * @Description <p></p>
 * @createTime 2022-03-12 11:34:00
 */

@Mapper
public interface ChannelConverter {
    ChannelConverter INSTANCE = Mappers.getMapper(ChannelConverter.class);

    Channel toChannel(ChannelSaveDTO dto);

    ChannelVO toChannel(Channel channel);

    List<ChannelVO> toChannelVOList(List<Channel> dtos);
}
